/*
 * demuxer.h
 *
 *  Created on: Sep 4, 2009
 *      Author: tron
 */

#ifndef DEMUXER_H_
#define DEMUXER_H_

#include <inttypes.h>

typedef struct _demuxer {
	uint8_t *input;
	uint8_t strobe;
} demuxer;

void demuxer_create(demuxer *d, uint8_t *pinArray, uint8_t inputs);
void demuxer_setPin(const demuxer *d, uint8_t pin, uint8_t inputs);
void demuxer_strobeOn(const demuxer *d);
void demuxer_strobeOff(const demuxer *d);

#endif /* DEMUXER_H_ */
